package Sort;

import java.util.Scanner;

/**
 * @author fly
 * @create 2021--03--15--20:33
 */
//求前缀和  一维
public class PrefixSum {
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[] a=new int[n+1];
        for(int i=1;i<=n;i++){
            a[i]=sc.nextInt();
            a[i]+=a[i-1];
        }
        for(int i=1;i<=n;i++){
            System.out.print(a[i]+" ");
        }
    }
}
